<?php 


header("Content-type: text/html; charset=utf-8") ;


function C($config = null)
{
	$configs = include './config/config.php';


	if(is_array($config)){
		$temp = array();

		foreach ($config as $v) {
			 $temp[$v] = $configs[$v];
		}
		return $temp;
	}

	if($config==null){
		return $configs;
	}elseif(!isset($configs[$config])){
		return '不存在';
	}else{
		return $configs[$config];
	}
	
}


///引错误信息模板
function error($url, $msg)
{
	include './Tpl/error.html';
	exit;
}

function success($url, $msg)
{
	include './Tpl/success.html';
	exit;
}




 ?>